import instance from "./require";

//获取商品列表数据
export const http_getshoplist = () => {
    return instance.get('/shoplist')
}

//获取双楼层类型数据
export const http_gettypelist = () => {
    return instance.get('/typelist')
}


//购物车数据
export const http_getcarlist = () => {
    return instance.get('/carlist')
}

//添加购物车数据
export const http_addshoplist = (obj: any) => {
    return instance.post('/carlist', obj)
}
//编辑购物车数据
export const http_updateshoplist = (obj: any) => {
    return instance.patch(`/carlist/${obj.id}`, obj)
}